package com.mstar.cameracapturetest;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class HotKeyBroadCastReceiver extends BroadcastReceiver {
	private static final String TAG = HotKeyBroadCastReceiver.class.getSimpleName();
	
	@Override
	public void onReceive(Context context, Intent intent) {
		Log.d(TAG, "onReceive. intent = " + intent.getAction().toString());
		
        if (intent.getAction().equals("com.mstar.android.intent.action.SOUND_MODE_BUTTON")) {
            Intent bootStartIntent = new Intent(context, CameraCapture.class);  
            bootStartIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);  
            context.startActivity(bootStartIntent);  
		}
	}

}
